package cn.dzhang.mybatis.repository;

import org.apache.ibatis.session.SqlSession;

public abstract class BaseRepository<M, ID>
{
	private SqlSession session;

	public BaseRepository(SqlSession session)
	{
		this.session = session;
	}

	public M findById(ID id)
	{
		M m = session.selectOne("", id);
		return m;
	}
}
